package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Consultation entity. @author MyEclipse Persistence Tools
 */

public class Consultation implements java.io.Serializable {

	// Fields

	private Long id;
	private Product product;
	private Member member;
	private Consultation consultation;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String content;
	private String ip;
	private Boolean isShow;
	private Set consultations = new HashSet(0);

	// Constructors

	/** default constructor */
	public Consultation() {
	}

	/** minimal constructor */
	public Consultation(Product product, Timestamp createDate,
			Timestamp modifyDate, String content, String ip, Boolean isShow) {
		this.product = product;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.content = content;
		this.ip = ip;
		this.isShow = isShow;
	}

	/** full constructor */
	public Consultation(Product product, Member member,
			Consultation consultation, Timestamp createDate,
			Timestamp modifyDate, String content, String ip, Boolean isShow,
			Set consultations) {
		this.product = product;
		this.member = member;
		this.consultation = consultation;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.content = content;
		this.ip = ip;
		this.isShow = isShow;
		this.consultations = consultations;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Consultation getConsultation() {
		return this.consultation;
	}

	public void setConsultation(Consultation consultation) {
		this.consultation = consultation;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(Boolean isShow) {
		this.isShow = isShow;
	}

	public Set getConsultations() {
		return this.consultations;
	}

	public void setConsultations(Set consultations) {
		this.consultations = consultations;
	}

}